package com.zhike.mobileimsdk.server.event;

import io.netty.channel.Channel;

import java.util.List;

import com.zhike.mobileimsdk.server.protocal.Protocal;

public interface ServerEventListener {
	int onUserLoginVerify(String userId, String token, String extra, Channel session);

	void onUserLoginSucess(String userId, String extra, Channel session);

	void onUserLogout(String userId, Channel session, int beKickoutCode);

	boolean onTransferMessage4C2SBefore(Protocal p, Channel session);

	boolean onTransferMessage4C2CBefore(Protocal p, Channel session);

	List<Protocal> onTransferMessage4C2C(Protocal p, Channel session);

	boolean onTransferMessage4C2S(Protocal p, Channel session);

	void onTransferMessage4C2C(Protocal p);

	boolean onTransferMessage_RealTimeSendFaild(Protocal p);

	void onTransferMessage4C2C_AfterBridge(Protocal p);

}
